import sdljava.SDLException;
import sdljava.video.SDLSurface;
import sdljava.video.SDLVideo;


public class LoadFile {
	public SDLSurface loadfile(String filename) throws SDLException{
		SDLSurface loadedImage = null;
		loadedImage = SDLVideo.loadBMP(filename);
		SDLSurface optimizedImage = loadedImage.displayFormat();
		loadedImage.freeSurface();
		return optimizedImage;
	}
}
